package com.jz.yanshe.ui;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.jz.yanshe.base.BaseActivity;

import butterknife.BindView;
import butterknife.OnClick;
import com.jz.yanshe.R;

/**
 * Created by Administrator on 2018/3/15.
 */

public class ForNormalActivity extends BaseActivity {

    @BindView(R.id.tv1)
    TextView tv1;
    @BindView(R.id.tv2)
    TextView tv2;
    @BindView(R.id.tv3)
    TextView tv3;
    @BindView(R.id.btn_confirm)
    TextView btn_confirm   ;

    int status;

    @Override
    protected void initViews() {
        if(status == 1){
            View v = getLayoutInflater().inflate(R.layout.activity_for_normal_false,null);
            setContentView(v);
            ImageView btn_back =v.findViewById(R.id.btn_back);
//            if(btn_back !=null){
                btn_back.setOnClickListener(new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        finish();
                    }
                });
//            }
        }
    }

    @Override
    protected void initData() {
        status = getIntent().getIntExtra("status",-1);
    }

    @Override
    protected int getLayoutResource() {
        return R.layout.activity_for_normal;
    }

    @OnClick(R.id.btn_confirm)
    void btn_confirm(){
        Bundle bundle = new Bundle();
        bundle.putString("userType","2");
        startActivity(AlipayActivity.class,bundle);
//        startActivity(UploadVipFileActivity.class);
        finish();
    }
}
